package com.eversec.model.exception;

/**
 * 文件校对异常Bean
 * @author Administrator
 *
 */
public class FileCheckExceptionBean {
	private Boolean flag;
	private Exception e;
	
	public FileCheckExceptionBean(Boolean flag, Exception e) {
		super();
		this.flag = flag;
		this.e = e;
	}
	public Boolean getFlag() {
		return flag;
	}
	public Exception getE() {
		return e;
	}
	
	@Override
	public String toString() {
		if (flag == Boolean.TRUE) {
			return "This file is valid!";
		} else {
			return e.getMessage();
		}
	}

}
